package com.cj.display_sys

import com.cj.display_sys.http.*

class MainRepository : BaseRepository() {

    suspend fun getPark(): ResponseData<ParkEntity> = request {
        RetrofitClient.service.getPark()
    }

    suspend fun getWater(): ResponseData<ParkEntity> = request {
        RetrofitClient.service.getWater()
    }

    suspend fun getNews(): ResponseData<ParkEntity> = request {
        RetrofitClient.service.getNews()
    }

    suspend fun getWeather(city: String): ResponseData<Weather> = request {
        RetrofitClient.service.getWeather(city)
    }

    suspend fun getNotice(): ResponseData<Notice> = request {
        RetrofitClient.service.getNotice()
    }

}